{% extends 'base.html' %}
{% block title %}文章详情{% endblock %}
{% block main %}
<div class="banner">
    <img src="/static/img/banner.jpg" alt="">
</div>
<div class="article-detail-box">
    <div class="title">
        <h2>{{article.title}}</h2>
    </div>
    <div class="info">
        {% if article.source == '1' %}
            <span class="source" style="background: #99CEA4">原创</span>
        {% elif article.source == '2' %}
            <span class="source" style="background: #84A0FA">转载</span>
        {% endif %}
        <span class="create-time">{{article.create_time}}</span>
    </div>
    <div class="content">
        <pre>{{article.content}}</pre>
    </div>
</div>
{% endblock %}